select e from UserEntity where 1=1
{{if user.id=="123"}}
    and id='123'
{{else}}
    and id!='123'
{{end}}